import {cancelorder1} from "@/services/cancelorder"

export default {
    namespoace:'cancelorder',
    state:{
      data:{
            
        }
    },
    effects:{
        *cancelorder1({
            callback,payload
        },{
            call,put
        }){
           const respon =  yield call(cancelorder1, payload);
           
           if(callback){
               callback(respon)
           }
           yield put({
               type:"cancelorder1Info",
               payload:respon
           });
        },

    },
    reducers:{
        cancelorder1Info(state,action){
            return{
                ...state,
              data:action.payload.result,
            }

        }
    }
}
